package main

import (
	"fmt"
	"net/http"
	"time"
)

func main() {
	for {
		response, err := http.Get("http://127.0.0.1:8080/sleep?time=20")

		if err != nil {
			fmt.Println(err)
			return
		}
		_ = response.Body.Close()

		time.Sleep(10 * time.Millisecond)
	}
}
